package com.terren.spider.core.html.scheme.impl;

import java.util.List;
import java.util.Map;
import java.util.Set;

import org.apache.log4j.Logger;

import com.terren.spider.core.html.configuration.Configuration;
import com.terren.spider.core.html.scheme.ICustomScheme;
import com.terren.spider.entity.biz.ArticleSearch;
import com.terren.spider.entity.core.Entry;
import com.terren.spider.util.common.LogUtil;

import us.codecraft.webmagic.Page;

public class BasicCustomScheme implements ICustomScheme{
	protected Logger log = LogUtil.getLogger(getClass());
	@Override
	public List<ArticleSearch> findTitleInfo(Page page, Entry entry) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Set<String> findHelpPaginationUrl(Page page, Entry entry) {
		// TODO Auto-generated method stub
		return null;
	}
	/**
	 * 查找列表页url
	 * @param page
	 * @param entry
	 * @return
	 */
	@Override
	public Set<String> findHelpUrl(Page page, Entry entry) {
		// TODO Auto-generated method stub
		return null;
	}
	/**
	 * 自定义添加目标页url
	 * @param page
	 * @param entry
	 * @return
	 */
	@Override
	public Set<String> findTargetUrl(Configuration configuration) {
		// TODO Auto-generated method stub
		return null;
	}
	/**
	 * 自定义设置头部
	 * @param entry
	 * @return
	 */
	@Override
	public Map<String, String> getHeader(Entry entry) {
		// TODO Auto-generated method stub
		return null;
	}
	/**
	 * 设置cookie
	 * @param entry
	 * @return
	 */
	@Override
	public Map<String, String> getCookie(Entry entry) {
		// TODO Auto-generated method stub
		return null;
	}
	/**
	 * 设置分页（动态加载的滚动条下拉触发的分页数量）
	 * @param entry
	 * @return
	 */
	@Override
	public Integer setRenderPage() {
		// TODO Auto-generated method stub
		return null;
	}
	/**
	 * 抓取后处理
	 * @param configuration
	 */
	@Override
	public void postFetch(Configuration configuration) {
		// TODO Auto-generated method stub
		
	}
	/**
	 * 自定义分析预处理
	 * @param page
	 * @param configuration
	 */
	@Override
	public void preParse(Page page, Configuration configuration) {
		// TODO Auto-generated method stub
		
	}
	/**
	 * 代理服务器是否使用阿布云（这里是指 代理服务器的阿布云配置：aby=true）
	 * @param page
	 * @param configuration
	 */
	@Override
	public boolean useAbuyunProxy() {
		// TODO Auto-generated method stub
		return false;
	}
	/**
	 * 代理服务器设置等待渲染时间（）
	 * @param entry
	 * @return
	 */
	@Override
	public Integer setTimeWait() {
		// TODO Auto-generated method stub
		return null;
	}


	@Override
	public Integer setPageRecordSize() {
		// TODO Auto-generated method stub
		return null;
	}
	/**
	 * 添加入口页url
	 * @param configuration
	 * @return
	 */
	@Override
	public Set<String> addEntryUrl(Configuration configuration) {
		// TODO Auto-generated method stub
		return null;
	}
	/**
	 * 自定义查找目标页的分页url
	 * @param page
	 * @param entry
	 * @return
	 */
	@Override
	public Set<String> findTargetPaginationUrl(Page page, Entry entry) {
		// TODO Auto-generated method stub
		return null;
	}
}
